package mms

class InspectionLog {
    
    Company company
    String InspectionType = '' //检查类型
    
    String  executor = '' // 检查人 
    Date dateCreated //日期
    String ids = ''
    static hasMany = [items : InspectionItem]
//    List items
//    static belongsTo = []
//    static transients = []


//    table 'xedu_article'
//    sort  lastTime
    static mapping = {
    }
    //blank 
    //email
    //inList
    //matches 
    //nullable 
    //size
    //unique
    //url 
    static constraints = {
        company(nullable:true)
        InspectionType(blank:true,size:0..100)
        executor(blank:true,size:0..200)
        dateCreated()
        ids(blank:false , size:0..40)
    }

    String toString() { 
        "${company}"
    } 
}
